package com.kyzh.core.adapters

import android.annotation.SuppressLint
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions.bitmapTransform
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gushenge.core.beans.BindGameBean
import com.kyzh.core.MyApplication
import com.kyzh.core.R
import com.kyzh.core.utils.BlurTransformation

// 后台item 适配器
class BackgroundAdapter : BaseQuickAdapter<BindGameBean, BaseViewHolder>(R.layout.item_background) {
    @SuppressLint("CheckResult")
    override fun convert(holder: BaseViewHolder, item: BindGameBean) {
        Glide.with(context).load(item.icon).into(holder.getView(R.id.imgLogo))
        Glide.with(context).load(item.icon)
            .into(holder.getView(R.id.imgLogoBg))
        holder.setText(R.id.tvGameName, item.name)
    }

}
